package com.easy.sftp.pool;

import com.easy.sftp.config.BaseConfig;
import org.apache.commons.pool2.impl.GenericObjectPool;

/**
 * @author jetlag
 */
public class Pool<T extends BaseConfig, E> {

    private GenericObjectPool<E> pool;

    public Pool (T configBean) {
        this.pool = new GenericObjectPool<E>(new ChannelFactory<T, E>(configBean));
    }


    public GenericObjectPool<E> getPool() {
        return pool;
    }
}
